import request from '@/utils/request'

export function deldepartment(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'

  })
}
export function adddepartment(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
export function getdepartmentsList(params) {
  return request({
    url: '/company/department',
    method: 'get',
    params
  })
}

